]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
dateMenu: Don't ellipsize world clock time/tz
authorFlorian Müllner <fmuellner@gnome.org>
Fri, 13 Mar 2020 14:37:42 +0000 (15:37 +0100)
committerGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>
Tue, 17 Mar 2020 13:44:30 +0000 (13:44 +0000)
If we need to ellipsize, it should be the location name, not the time
or timezone offset.

https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1090

js/ui/dateMenu.js

index c6c1b5bb5a35cd5e27055c0b07f42fbb7dfc2e74..cdbe0ac415207e56e679889c46ef506924d5bcb0 100644 (file)
@@ -189,6 +189,9 @@ class WorldClocksSection extends St.Button {
                                     x_align: Clutter.ActorAlign.END,
                                     y_align: Clutter.ActorAlign.CENTER });
 
+            time.clutter_text.ellipsize = Pango.EllipsizeMode.NONE;
+            tz.clutter_text.ellipsize = Pango.EllipsizeMode.NONE;
+
             if (this._grid.text_direction == Clutter.TextDirection.RTL) {
                 layout.attach(tz, 0, i + 1, 1, 1);
                 layout.attach(time, 1, i + 1, 1, 1);